int ds = 5;
int sh_cp = 6;
int st_cp = 7;

int a[11][8] = {
  { 1, 1, 1, 1, 1, 1, 0, 0},
  { 0, 1, 1, 0, 0, 0, 0, 0},
  { 1, 1, 0, 1, 1, 0, 1, 0},
  { 1, 1, 1, 1, 0, 0, 1, 0},
  { 0, 1, 1, 0, 0, 1, 1, 0},
  { 1, 0, 1, 1, 0, 1, 1, 0},
  { 1, 0, 1, 1, 1, 1, 1, 0},
  { 1, 1, 1, 0, 0, 0, 0, 0},
  { 1, 1, 1, 1, 1, 1, 1, 0},
  { 1, 1, 1, 1, 0, 1, 1, 0},
  { 0, 0, 0, 0, 0, 0, 0, 0}
};


void led_on(int p ) {
  digitalWrite(st_cp, LOW);
  for (int x = 0 ; x < 8; x++) {
    digitalWrite(sh_cp, LOW);
    digitalWrite (ds, a[p][x]);
    digitalWrite(sh_cp, HIGH);
  }
  digitalWrite(st_cp, HIGH);
}
void setup() {
  pinMode(ds, OUTPUT);
  pinMode(sh_cp, OUTPUT);
  pinMode(st_cp, OUTPUT);
  // put your setup code here, to run once:
  led_on(9);
  delay(500);
}

void loop() {
  for (int x = 0; x < 11; x++)
  {
    led_on (x);
    delay(1000);
  }
  // put your main code here, to run repeatedly:

}